import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.less'
import './styles/index.less';//项目通用样式
import mock from './mock'
import FCPage from './layouts/FCPage.vue'
import FCLayout from './layouts/FCLayout.vue'

Vue.component('FCPage', FCPage)
Vue.component('FCLayout', FCLayout)

const nowEnv = process.env.NODE_ENV
console.log('当前环境:', nowEnv)
if (nowEnv == 'development') mock()

Vue.prototype.$NODE_ENV = nowEnv;
Vue.config.productionTip = false

Vue.use(Antd)

new Vue({
  router,
  render: (h) => h(App),
}).$mount('#app')
